<extend name="Public:f_base"/>
<block name="title">登录</block>
<block name="style">
<link rel="stylesheet" href="__ROOT__/Static/css/nivo-slider.css" media="all" />
</block>
<block name="script">
<script src="__ROOT__/Static/js/custom.js"></script>
<script src="__ROOT__/Static/js/jquery.tweet.js"></script>
<script src="__ROOT__/Static/js/jquery.nivo.slider.js"></script>
<script src="__ROOT__/Static/js/jquery.poshytip.min.js"></script>
<script>    
    function check_passwd (){
        var loginname = $.trim($("#loginname").val()),
		passwd = $("#passwd").val();
		$.get('{:U("Login/ucenterlogin")}', {loginname: loginname,passwd:passwd}, function(data) {
		//alert(data);
			if(data=="true")
				window.location.href='{:U("Ucenter/index")}';
			else
				alert("用户名密码错误");
		});        
    }

    function ajax(_url, _dataType, _data, _sync, operation) {
            try {
                $.ajax({
                    url: _url,
                    type: "POST",
                    dataType: _dataType,
                    data: _data,
                    async: _sync,
                    error: function(msg) {
                        //tipsWindown("text*异常"+msg);    
                    },
                    success: function(data)
                    {
                        operation(data);
                    }
                });
            } catch (error) {
                //tipsWindown("text*异常");
            }
        }
</script>
</block>
<block name="content">
<div class="main_body">
<div class="login-middle">
    <div class="banner">

    </div>
    <div class="banner_right">
        <div class="adminlonginTable">
            <div class="userinformation">
                <p class="login_title">管理员登录</p>
                <form class="pure-form">
                    <fieldset class="pure-group">
                        <input type="text" class="pure-input-1" placeholder="Username" id ="loginname"/>
                        <input type="password" class="pure-input-1" placeholder="Password" id ="passwd"/>
                    </fieldset>
                    <input type="button" class="pure-button pure-input-1 pure-button-primary" onclick="check_passwd()" value="登录">
                </form>
            </div>
        </div>
    </div>
</div>
<div class="donwnload"></div>
<div class="footer">
copyright by Hearain 2014-2015
</div>
</div>
</block>